import request from 'plugin/axios'

export function getSelectList(data:{
    select_name: string,
    is_wechat_warehouse?:boolean,
    warehouse_type?:number,
    location_manage?:number,
    warehouse_id?:number,
    cp_code?:string
}):Promise<any>{
    return request({
        url:'/selector/selectList',
        method:'post',
        data
    })
}

export function getAgentPartnerList(params:any):Promise<any>{
    return request({
        url:'v1/tools/agent/partner/list',
        params,
        method:'get'
    })
}

export function getAgentServiceList():Promise<any>{
    return request({
        url:'v1/tools/agent/service/list',
        method:'post'
    })
}

export function getCategoryList():Promise<any>{
    return request({
        url:'v1/tools/alipay/category/list',
        method:'get'
    })
}

export function getCompanyList():Promise<any>{
    return request({
        url:'v1/product/seller/list',
        method:'get'
    })
}